<div class="list">
  <table>
    <thead>
    <tr>

      <g:sortableColumn property="id" title="${message(code:'job.table.id')}"/>

      <th>${message(code: 'job.table.customer')}</th>

      <g:sortableColumn property="date" title="${message(code:'job.table.date')}"/>

      <g:sortableColumn property="discount" title="${message(code:'job.table.discount')}"/>

      <g:sortableColumn property="originalValue" title="${message(code:'job.table.original.value')}"/>

      <g:sortableColumn property="value" title="${message(code:'job.table.value')}"/>

      <g:sortableColumn property="actualValue" title="${message(code:'job.table.actual.value')}"/>

      <g:sortableColumn property="status" title="${message(code:'job.table.status')}"/>

      <g:sortableColumn property="point" title="${message(code:'job.table.point')}"/>

    </tr>
    </thead>
    <tbody>
    <g:each in="${jobInstanceList}" status="i" var="jobInstance">
      <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

        <td><g:link action="show" id="${jobInstance.id}">${fieldValue(bean: jobInstance, field: 'id')}</g:link></td>

        <td>${fieldValue(bean: jobInstance, field: 'customer')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'date')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'discount')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'originalValue')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'value')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'actualValue')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'status')}</td>

        <td>${fieldValue(bean: jobInstance, field: 'point')}</td>

      </tr>
    </g:each>
    </tbody>
  </table>
</div>
<div class="paginateButtons">
  <g:paginate total="${Job.count()}"/>
</div>